﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Core
{
    public class Page
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 所在站点Id
        /// </summary>
        public Guid SiteId { get; set; }
        public string Code { get; set; }
        public string Caption { get; set; }

        //public Layout Layout { get; set; }
        public PageTemplate Template { get; set; }
        public Guid? TemplateId { get; set; }

        /// <summary>
        /// 页面类型
        /// virtualpage：虚拟页面
        /// nativepage：物理页面
        /// fullurl：完整url地址
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 页面的url地址信息
        /// virtualpage: ~/{code}
        /// nativepage: ~/{path}
        /// fullurl: http://{address}
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// Whether inherited site navigation list
        /// <para>true:inherited</para>
        /// <para>false:not inherited</para>
        /// </summary>
        public bool IsInheritedSiteNavigation { get; set; }
    }
}
